how to find class boundaries